package com.ddatsh.transaction.core.model.strategy;


import java.util.Date;
import java.util.List;

import com.ddatsh.transaction.core.model.TransactionDefinition;
 
/**
 * 策略描述接口,用于定义交易策略规格
 * 
 * @author ddatsh
 */
public class Strategy implements java.io.Serializable {
	private static final long serialVersionUID = 1080783571635009562L;
	private Long id;
	private String name;
	private Date lastUpdateTime;
	private String policyType;
	private TransactionDefinition transDef;
	private List<StrategyAttribute> attributes;
	private boolean enable;

	public Long getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}

	public String getPolicyType() {
		return policyType;
	}

	public TransactionDefinition getTransDef() {
		return transDef;
	}

	public List<StrategyAttribute> getAttributes() {
		return attributes;
	}

	public boolean isEnable() {
		return enable;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public void setPolicyType(String policyType) {
		this.policyType = policyType;
	}

	public void setTransDef(TransactionDefinition transDef) {
		this.transDef = transDef;
	}

	public void setAttributes(List<StrategyAttribute> attributes) {
		this.attributes = attributes;
	}

	public void setEnable(boolean enable) {
		this.enable = enable;
	}

}
